package Zhouliu;
//固定底薪的销售人员
public class  BasePlusSalesEmployee extends SalesEmployee{
    private double diXin;
    public BasePlusSalesEmployee(){
        super();
    }
    public BasePlusSalesEmployee(double diXin) {
        super(98000,0.1);
        this.diXin = diXin;
    }
    @Override
    public double getSalary(int month) {
        double price = 0;
        if (getBirMonth() == month){
            price+=100;
            System.out.println("生日红包:"+100+"元!");
        }
        price += diXin+(getMonSalVol()*getPush());
        System.out.println(getName()+"薪资:"+price);
        return price;
    }

    @Override
    public void print() {
        setName("钱三强");
        setBirMonth(10);
        super.print();
    }

    public double getDiXin() {
        return diXin;
    }
    public void setDiXin(double diXin) {
        this.diXin = diXin;
    }
}

